package com.gitee.rest.web;

import com.gitee.ExcelToHtml;
import com.gitee.handlers.DefHandler;
import com.gitee.handlers.FormulaHandler;
import com.gitee.handlers.InputHandler;
import com.gitee.handlers.SelectHandler;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Administrator
 * @date 2020/9/15
 * @Description: TODO
 */
@RestController
//@RequestMapping("api")
public class TestController {

    @GetMapping("test")
    public String test() {
        DefHandler.handlers.put("input",new InputHandler());
        DefHandler.handlers.put("select",new SelectHandler());
        DefHandler.handlers.put("formula",new FormulaHandler());
        Map<String,String> param = new HashMap<>();
        return ExcelToHtml.readExcelToHtml("C:\\Users\\Administrator\\Desktop\\test.xls",param,true);
    }
}
